using UnityEngine;
using UnityEngine.UI;

namespace Hydrogen.ULib.UINavigation
{
    public class UINavNodeUnderScrollView : UINavNode
    {
		private UIButtonGroupDynamics _uiBtnGroupDynamics
        {
			get
			{
				if (!m_uiBtnGroupDynamics) m_uiBtnGroupDynamics = GetComponentInParent<UIButtonGroupDynamics>();
				return m_uiBtnGroupDynamics;
			}
		}
		private UIButtonGroupDynamics m_uiBtnGroupDynamics;



		public override void Selected()
        {
            base.Selected();

			_uiBtnGroupDynamics?.SetToCenter(this);
        }
    }
}
